package javacore.abstraction;

public class TestDog {
	public static void main(String args[]){
      Animal animal = new Animal(); // Animal reference and object
      Animal dog = new Dog(); // Animal reference but Dog object

      animal.move();// runs the method in Animal class

      dog.move();//Runs the method in Dog class
   }
}
